\documentclass[12pt]{article}
\title{Atelier4 Web-framework Development \\ Documentation}	
\author{Gabriele Cerfoglio, Nicolas Lusa, Nicolas Zimerman, Samuel Measho}
\date{March 30, 2012}	

\begin{document}
\maketitle

\section*{Introduction}
This  project is done as part of the software atelier IV course given in 4th semester in Bachelor course at USI. The main aim of this project is to develop web framework starting almost from scratch on the top of Java servlet. This project will have four phases of two weeks each. In this two weeks, we  have five scram meeting and one short presentation at the end of the second week.

\section*{First Phase (march 29th - 30th, 2012)}
 \subsection*{Sprint-backlog of this phase:}
\begin{itemize}
\item Routing : Our framework must support returning different static and dynamic content depending on the URI.
\item  Templates : Our framework must be able to load content from files, substitute dynamic values (depending on the URI, form parameters, database contents, etc), generating HTML (and also possibly CSS or JavaScript) to return to the client.
\item Forms : Our framework must support HTML forms, allowing users to send data to the server through forms using GET and POST methods (and possibly also other HTTP methods). Your framework should also support an easy method of creating forms.
\end{itemize}


\subsection*{What we managed to do from this phase's sprint-backlogs:}
\begin{itemize}

\item Routing:
           \begin{itemize} 
              \item We managed returning different static content depending on the URI.
           \end{itemize}   
\item Templates: 
         \begin{itemize}
         \item We are able to return html content to the user but with out css and javascript.
         \item  Can be edited by changing the file or by changing the input string to the function passTemplate.
         \end{itemize}
\item Forms: 
        \begin{itemize}
        \item   We created a form so that the user can post some text messages.
         \end{itemize}
\end{itemize}

\subsection*{Testing:}
 For testing the route table, we created some test in the file called test1.scala ( src/test/scala/test1.scala ).
  
  \subsection*{User-Guide:}
In order to run our application, you have to follow the following steps:
\begin{itemize}
\item First you have to run the command ./sbt in terminal being in the folder of the application preceded  by the following  commands: compile, container:start. 
\item Then you have to type (localhost:8080/) plus the correct route  in the browser to see the different  features.
\end{itemize}


\end{document}             